<form id="pagerForm" method="post" action="">
    <input type="hidden" name="pageNum" value="{$pageNum}" />
    <input type="hidden" name="numPerPage" value="{$numPerPage}" />
    <input type="hidden" name="orderField" value="{$orderField}" />
    <input type="hidden" name="orderDirection" value="{$orderDirection}" />
    <input type="hidden" name="keywords" value="{$keywords}" />
    <input type="hidden" name="sfield" value="{$wherefields}" />
    <input type="hidden" name="sfield_name" value="{$sfield_name}" />
    <input type="hidden" name="status" value="{$condition['status']}" />
    <input type="hidden" name="moneytype" value="{$condition['moneytype']}" />
    <input type="hidden" name="isover" value="{$condition['isover']}" />
</form>
<div class="pageHeader">
    <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="{:U($module_name.'/'.$action_name)}" method="post">
	<table  class="search_table" width="100%">
	<tr>
		<td>	
			<div class="searchBar">
				<ul class="searchContent">
					<li style="width:210px;">
						<label style="width:50px;">关键字：</label>
						<input type="text" class="autoinput" name="keywords" value="{$keywords}" style="width:120px;"/>
					</li>
					<li style="width:80px;">
						<select name="sfield" class="combox">
						<option value="all" {if $wherefields=='all'}selected="selected"{/if}>全部</option>   
						<option value="userid" <eq name="wherefields" value="userid">selected="selected" </eq>>用户ID</option>						
						<option value="id" <eq name="wherefields" value='id'>selected="selected"</eq>>ID</option>
						<option value="auth" <eq name="wherefields" value="auth">selected="selected" </eq>>授权码</option>
						</select>
						<input type="hidden" name="sfield_name" value="id,userid,auth" /></li>
						
					</li>
					<li style="width:90px;">
						<select name="status">
						<option value="">--所有--</option>
						<option value="1" <eq name="condition['status']" value="1">selected</eq>>有效</option>
						<option value="0" <eq name="condition['status']" value="0">selected</eq>>无效</option>
						</select>
					</li>
					<li style="width:90px;">
						<select name="moneytype">
						<option value="">--类型--</option>
						<option value="CV" <eq name="condition['moneytype']" value="CV">selected</eq>>CV</option>
						<option value="BV" <eq name="condition['moneytype']" value="BV">selected</eq>>BV</option>
						</select>
					</li>
					<li style="width:120px;">
						<select name="isover">
						<option value="">--完成情况--</option>
						<option value="1" <eq name="condition[isover]" value="1">selected</eq>>完成</option>
						<option value="0" <eq name="condition[isover]" value="0">selected</eq>>未完成</option>
						</select>
					</li>
					
					 	<li style="width:160px;">
						<input name="starttime" id="stime" class="date" type="text" value="{$condition['starttime']}"/><a class="inputDateButton" href="javascript:;">选择</a>
					  </li>
					<li style="width:160px;">
						<input name="endtime" id="etime" class="date" type="text" value="{$condition['endtime']}"/><a class="inputDateButton" href="javascript:;">选择</a>
					</li>
       							
					<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
				</ul>
			</div>
		</td>
		
	</tr>
	</table>
    </form>
    

</div>

<div class="pageContent">
    <div class="panelBar">
		<ul>
		<li>今天到账：<input readonly="true" type="text" style="width:60px;margin-right:10px;" value="{$statistics['count_today']}{$moneytype}"/></li>
		<li>明天到账：<input readonly="true" type="text" style="width:60px;margin-right:10px;" value="{$statistics['count_tomorroy']}{$moneytype}"/></li>
		<li>本周到账：<input readonly="true" type="text" style="width:70px;margin-right:10px;" value="{$statistics['count_week']}{$moneytype}"/></li>
		<li>本月到账：<input readonly="true" type="text" style="width:80px;margin-right:10px;" value="{$statistics['count_monty']}{$moneytype}"/></li>
		<li>下月到账：<input readonly="true" type="text" style="width:80px;margin-right:10px;" value="{$statistics['count_prox']}{$moneytype}"/></li>
		</ul>
    </div>
    <div id="w_list_print">
        <table class="list" width="100%" targetType="navTab" asc="asc" desc="desc" layoutH="94">
             <thead>
      		<tr>
      		<th width="20"><input type="checkbox"  id="check_box"  onclick="selectall('ids[]');" /></th>
			<th width="40" orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>ID</th>
            <th width="50" orderField="userid" {if $orderField=='userid'}class="{$orderDirection}"{/if}>用户</th>
			<th width="80" orderField="countoedu" {if $orderField=='countoedu'}class="{$orderDirection}"{/if}>总金额</th>	
			<th width="40" orderField="qishu" {if $orderField=='qishu'}class="{$orderDirection}"{/if}>总期数</th>
			<th width="60" orderField="eachoedu" {if $orderField=='eachoedu'}class="{$orderDirection}"{/if}>每期到账</th>	
            <th width="120" orderField="overoedu" {if $orderField=='overoedu'}class="{$orderDirection}"{/if}>已到账</th>	
            <th width="120" orderField="notoveroedu" {if $orderField=='notoveroedu'}class="{$orderDirection}"{/if}>未到账</th>	
			<th width="100" orderField="startday" {if $orderField=='startday'}class="{$orderDirection}"{/if}>开始时间</th>
            <th width="100" orderField="updatetime" {if $orderField=='updatetime'}class="{$orderDirection}"{/if}>更新时间</th>
			<th width="30" orderField="status" {if $orderField=='status'}class="{$orderDirection}"{/if}>有效</th>
            <th width="40" orderField="isover" {if $orderField=='isover'}class="{$orderDirection}"{/if}>完成</th>
            <th width="50">返款标识</th>
            <th width="40">明细</th>
      		</tr>
      	</thead>
        <tbody>
			<volist name="list" id="vo" key="k">
      		<tr>
      		<td align="center"><input type="checkbox" name="ids[]" value="{$vo['id']}" /></td>
			<td align="center">{$vo['id']}</td>
      		<td align="">
      			<a title="查看" target="dialog" width="580" height="500" rel="User_detail_{$vo['id']}" href="{:U('User/detail',array('id'=>$vo['userid']))}">
				({$vo['userid']}) &nbsp;&nbsp;{$userdata[$vo['userid']]['username']}
				</a>
				</td>
            <td align="center">{$vo['countoedu']/100} {$vo['moneytype']}</td>
			<td align="center">{$vo['qishu']}</td>
      		<td align="center">{$vo['eachoedu']/100} {$vo['moneytype']}</td>
      		<td align="center">{$vo['overoedu']/100} {$vo['moneytype']}｜{$vo['overqishu']}期</td> 
            <td align="center">{$vo['notoveroedu']/100} {$vo['moneytype']}｜{$vo['notoverqishu']}期</td>     		
			<td align="center">{$vo['createtime']|date='Ymd H:i:s',###}</td>
            <td align="center">{$vo['updatetime']|date='Ymd H:i:s',###}</td>
			<td align="center"><if condition="$vo['status'] eq 1">有效<elseif condition="$vo['status'] eq 0" />无效</if></td>
            <td align="center"><if condition="$vo['isover'] eq 1">完成<elseif condition="$vo['isover'] eq 0" />未完成</if></td>
            <td>{$vo['only']}</td>
            <td align="center"><a href="{:U('Give/logs',array('only'=>$vo['only']))}" target="navTab" title="查看分期列表" class="btnView" >查看</a></td>       		
      		</tr>
			</volist>
      	</tbody>
        </table>
    </div>

    <div class="panelBar" >
        <div class="pages">
            <span>显示 </span>
            <select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20" {if $numPerPage==20}selected="selected"{/if}>20</option>
                <option value="50" {if $numPerPage==50}selected="selected"{/if}>50</option>
                <option value="100" {if $numPerPage==100}selected="selected"{/if}>100</option>
                <option value="200" {if $numPerPage==200}selected="selected"{/if}>200</option>
            </select>
            <span> 条，共 {$totalCount} 条</span>
        </div>
        
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$pageNum}"></div>
    </div>
</div>